package com.nsapi.niceschoolapi.service.impl;

import com.nsapi.niceschoolapi.entity.SchoolManageVO;
import com.nsapi.niceschoolapi.mapper.SchoolManageMapper;
import com.nsapi.niceschoolapi.service.SchoolManageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("schoolManageService")
public class SchoolManageServiceImpl implements SchoolManageService {
    @Resource
    private SchoolManageMapper schoolManageMapper;


    @Override //查询全部系部
    public List<SchoolManageVO> findAllDpm(SchoolManageVO schoolManageVO) {
        return schoolManageMapper.findAllDpm(schoolManageVO);
    }

    @Override  //级联系部查询对应专业
    public List<SchoolManageVO> jlSelMajor(SchoolManageVO schoolManageVO) {
        return schoolManageMapper.jlSelMajor(schoolManageVO);
    }

    @Override  //级联专业查询对应年级
    public List<SchoolManageVO> jlSelGrade(SchoolManageVO schoolManageVO) {
        return schoolManageMapper.jlSelGrade(schoolManageVO);
    }

    @Override  //级联年级查询班级
    public List<SchoolManageVO> classinfo(SchoolManageVO schoolManageVO) {
        return schoolManageMapper.classinfo(schoolManageVO);
    }

}
